'use strict';

const log = require('npmlog')

log.level = process.env.LOG_LEVEL ?  process.env.LOG_LEVEL : 'info'

// 修改前缀
// log.heading = 'ayuan-cli'
// 修改样式
// log.headingStyle = { fg: 'blue', bg: ''}
// 添加自定义指令
log.addLevel('success', 2000, { fg: 'green', bg: ''})

module.exports = log;
